# $NetBSD: Makefile,v 1.4 2012/09/28 22:07:34 asau Exp $
#

DISTNAME=	emirror-2.1.21
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=emirror/} \
		ftp://ftp.fu-berlin.de/unix/network/emirror/ \
		ftp://eclipt.uni-klu.ac.at/pub/projects/emirror/

MAINTAINER=	holger@zedat.fu-berlin.de
HOMEPAGE=	https://sourceforge.net/projects/emirror/
COMMENT=	FTP mirroring tool with nice HTML logfiles
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
NO_BUILD=	yes

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR} \
			--with-python=${PYTHONBIN:Q}

post-extract:
	${MV} ${WRKSRC}/man/emirror.1 ${WRKSRC}/man/emirror.1.in

post-configure:
	${SED} -e "s|@PREFIX@|${PREFIX}|g" \
		-e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
		< ${WRKSRC}/man/emirror.1.in > ${WRKSRC}/man/emirror.1

.include	"../../lang/python/application.mk"
.include	"../../mk/bsd.pkg.mk"
